inputs, whereas in the function, we can find both the input and the

output types.

If we delete all the code from the contract and make it blank, then we

can see that the ABI becomes [], i.e., blank too.

Now, access the contract’s event in the JavaScript code. Refer to the

following code:

var abi =/* abi as generated using compiler */;

varClientReceipt= web3.eth.contract(abi);

var clientReceiptContract = ClientReceipt.at(“0x1234…ab67”/*

address */);

varevent = clientReceiptContract.Deposit(function(error,

result){

if(!error)console.log(result);

});

It should print the details similar to the output given in the following

section.

2.5.19.2 Output

Refer to the following output:

{

“returnValues”: {

“_from”: “0x1111…FFFFC”CC”,

“ “”id“: “0x50…sd5ad”20”,

“ “_va”ue“: “0x420”42”

},

“ “”aw”: {

“ “d”ta“: “0x7f…91”85”,

“ “top”cs”“ [“0xfd4…b4e”d7“, “0x7f…1a91”85”]

}

}

2.5.20 Object Oriented Approach of Solidity